import request from '@/utils/request'

// api地址
const api = {
	consultation_question: 'app/online/consultation/question',
	consultation_detail: 'app/online/consultation/detail/',
	consultation_list: 'app/online/consultation/list'

}
/**
 * 获取咨询列表
 */
export function consultation_list(page) {
	return request.post(api.consultation_list, {
		...page
	})
}
/**
 * 获取详情
 */
export function consultation_detail(id) {
	return request.get(api.consultation_detail + id)
}
//添加咨询
export function consultation_question(obj) {
	return request.post(api.consultation_question, {
		...obj
	})
}